<!-- Page Sidebar -->
<div class="page-sidebar" id="sidebar">
    <!-- Page Sidebar Header-->
    <div class="sidebar-header-wrapper">
        <input class="searchinput" type="text">
        <i class="searchicon fa fa-search"></i>
        <div class="searchhelper">Search Reports, Charts, Emails or Notifications</div>
    </div>
    <!-- /Page Sidebar Header -->
    <!-- Sidebar Menu -->
    <ul class="nav sidebar-menu">
        <!--Dashboard-->
        <li>
            <a href="{{ route('admin.index.index') }}" class="menu-dropdown">
                <i class="menu-icon glyphicon glyphicon-home"></i>
                <span class="menu-text">首页</span>
                <i class="menu-expand"></i>
            </a>
        </li>
        @if($menu)
            @foreach($menu as $v)
            <li>
                <a href="#" class="menu-dropdown">
                    <i class="menu-icon {{ $v['per_icon'] }}"></i>
                    <span class="menu-text">{{ $v['permission_name'] }}</span>
                    <i class="menu-expand"></i>
                    @if($v['permission_name'] == '订单管理')
                    <span id="article_nums" class="menu_tips">20</span>
                    @endif
                </a>
                @if(isset($v['child']))
                <ul class="submenu">
                    @foreach($v['child'] as $v1)
                    <li>
                        <a id="{{ $v1['route_url'] }}" href="{{ url($v1['route_url']) }}">
                            <span class="menu-text"> {{ $v1['permission_name'] }} </span>
                            <i class="menu-expand"></i>
                        </a>
                    </li>
                    @endforeach
                </ul>
                @endif
            </li>
            @endforeach
        @endif

       {{-- <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-file-text"></i>
                <span class="menu-text">文章管理</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <a href="{{ route('admin.article.index') }}">
                        <span class="menu-text"> 文章列表 </span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
                <li>
                    <a href="{{ route('admin.category.index') }}">
                        <span class="menu-text"> 文章分类 </span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>
        </li>

        <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-file-text"></i>
                <span class="menu-text">会员管理</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <a href="{{ route('admin.user.index') }}">
                        <span class="menu-text"> 会员列表 </span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>
        </li>

        <li>
            <a href="#" class="menu-dropdown">
                <i class="menu-icon fa fa-gear"></i>
                <span class="menu-text">系统</span>
                <i class="menu-expand"></i>
            </a>
            <ul class="submenu">
                <li>
                    <a href="{{ route('admin.web_config.index') }}">
                        <span class="menu-text">配置 </span>
                        <i class="menu-expand"></i>
                    </a>
                </li>
            </ul>
        </li>--}}
    </ul>
    <!-- /Sidebar Menu -->
</div>
<!-- /Page Sidebar -->
